Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(v4): expose Kafka headers #81

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

leowind
Copy link
Contributor

@leowind leowind commented Aug 20, 2024

The lobby service needs to retrieve the user's sequence ID before processing the message. Attaching the sequence ID to the event payload requires decoding the payload first, which currently happens on the worker. Moving this step outside the worker would slow down the Kafka message consumption rate.
By using headers, the lobby service can retrieve the user's sequence ID from the Kafka message without needing to decode the payload before sending it to the workers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant